<?php
class services_ProfileService
{
	public function __construct()
	{
		
	}
	
	/**
	 * returns how common a user's nickname is based on a fictional web service call
	 * 
	 * @param object user_User
	 *
	 */
	public function howCommonIsMyNickname(user_User $user)
	{
        $nickname = $user->Profile->getNickname();
        
        // stub this out to a fake hard coded value but you get the idea
       	// $client = new Zend_Rest_Client('http://infoworld.com');
	   	//$popularity =  $client->nicknamePopularity($nickname)->get(); 
	   	
        $popularity = 7;
		return $popularity;
	}
}